$(function(){
	var infor_where_select=$("#infor-where-select");
	YuXi.util.get("getCanCheckPrison.do",null,function(data){
		if(data.status){
			var object=data.object;
			for(var i=0;i<object.length;i++){
				var type=object[i].value=="Prison"?"0":"1";
				var html="<option  data-name="+object[i].name+" data-type="+type+" value="+object[i].id+" >"+object[i].name+"</option>";
				$(infor_where_select).append(html);
			}
			if(object.length<=1){
				$(infor_where_select).attr("disabled","disabled");
			}
		}
	});
})